Skip to content

Ship prebuilt binaries with every release again - #124

Merged
lukidoescode merged 4 commits into
mainfrom
lwagner/122-prebuilt-binaries
Dec 2, 2026
Merged

lukidoescode merged 4 commits into
mainfrom
lwagner/122-prebuilt-binaries

Conversation

@lukidoescode

Copy link
Copy Markdown
Owner

Closes #122.

Problem

GitHub creates no push events when more than three tags are pushed at once. The release workflow pushes one tag per released crate in a single push (0.1.6 pushed nine tags, 0.1.7 four), so dist.yml, which only ran on a tag push, never ran after 0.1.5. publish.yml and docker.yml still ran because dispatch-publish.sh starts them explicitly; dist.yml was never added to that script.

Changes

  • dispatch-publish.sh also starts dist.yml for the cargo-changeset tag. A failed dispatch no longer stops the remaining ones; the script reports the failures and exits non-zero at the end. Covered by a new stub-based test (test-dispatch-publish.sh) that runs in the lint workflow.
  • dist.yml, docker.yml and publish.yml are dispatch-only, so a release has a single trigger path and no double runs.
  • dist.yml builds on any ref (placeholder version 0.0.0-<sha> off a tag). Only the release job requires a cargo-changeset@v* tag. It creates the GitHub release or replaces the assets of an existing one, so it can be re-run.
  • Outside lukidoescode/cargo-changeset, publish.yml runs cargo publish --workspace --dry-run and docker.yml builds without logging in or pushing, so copies of the repo can rehearse a release safely.
  • Dockerfile no longer installs OpenSSL/libssh2: git2 is built without default features, and nothing in the dependency tree links them.
  • README documents additional-packages: the configuration, the automatic patch bump for version-tracking dependencies, and the cargo changeset additional-packages subcommand.

Rehearsal

  • Build-only dist.yml run of this branch: all 5 targets built, the release job was skipped.
  • Full release rehearsal in a throwaway public copy of the repo with the same environments, rulesets and a fresh deploy key, no registry secrets (deleted afterwards):
    • the release pushed 10 tags and triggered no push runs of dist/docker/publish;
    • publish dry-ran 10 times in dependency order;
    • docker built amd64 and arm64 without pushing;
    • dist created the [email protected] release with 5 binaries;
    • a re-run on the tag replaced the assets, and a run on a branch skipped the release job.

Tag pushes of more than three tags are dropped by GitHub, so the dist
workflow never ran for releases. dispatch-publish.sh now dispatches
dist and docker for the cargo-changeset tag, continues on failures and
reports them at the end. The release job is idempotent, and forks only
dry-run publishing and never push images. Adds a test for the script.
git2 no longer pulls them into the dependency tree.
@lukidoescode
lukidoescode merged commit b2dd050 into main Dec 2, 2026
17 checks passed
@lukidoescode
lukidoescode deleted the lwagner/122-prebuilt-binaries branch December 2, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish prebuilt binaries for 0.1.7 and later

1 participant